﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
aaaaaaaaaaaa
    
        <asp:DropDownList ID="ddlCate" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource1" DataTextField="Name" DataValueField="CateId" OnSelectedIndexChanged="ddlCate_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=Mobil1Entity" DefaultContainerName="Mobil1Entity" EnableFlattening="False" EntitySetName="Categories" EntityTypeFilter="Category">
        </asp:EntityDataSource>
        <asp:GridView ID="gvMobil" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="gvMobil_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="MobilId" HeaderText="MobilId" />
                <asp:BoundField DataField="Name" HeaderText="Name" />
                <asp:BoundField DataField="Price" HeaderText="Price" />
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" />
            </Columns>
        </asp:GridView>
        <br />
        <asp:DetailsView ID="dvMobil" runat="server" AutoGenerateEditButton="True" Height="50px" OnModeChanging="dvMobil_ModeChanging" Width="125px">
        </asp:DetailsView>
    
    </div>
    </form>
</body>
</html>
